import request from '@/utils/request'

// 查询谷歌ID列表
export function listAdid(query) {
  return request({
    url: '/device/adid/list',
    method: 'get',
    params: query
  })
}

// 查询谷歌ID详细
export function getAdid(id) {
  return request({
    url: '/device/adid/' + id,
    method: 'get'
  })
}

// 新增谷歌ID
export function addAdid(data) {
  return request({
    url: '/device/adid',
    method: 'post',
    data: data
  })
}

// 修改谷歌ID
export function updateAdid(data) {
  return request({
    url: '/device/adid',
    method: 'put',
    data: data
  })
}

// 删除谷歌ID
export function delAdid(id) {
  return request({
    url: '/device/adid/' + id,
    method: 'delete'
  })
}
